 <div class="row">
                <div class="col-lg-12"> 
                   <h3 class="page-header text-success">Phân quyền quản lý<a  href="<?php echo base_url()?>" class="btn btn-danger pull-right">Quay lại</a></h3>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                      <div class="panel-heading">
                          <div class="row">
                          	  <div class="pull-right">
								 <a class="btn btn-primary" href="<?php echo base_url()?>backend/user/add_role/">Thêm nhóm quyền mới</a>	
                              </div><!-- /.pull-right -->    
                               
                            </div>
	
                       </div> <!-- /.input-group -->
                        
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive" style="overflow:scroll" >
                               <form name="frmSearch" method="post" action="<?php echo base_url()?>backend/user/list_role/">
                               <fieldset>
                                	<div class='form-group'>
                                        
                                        <?php
										//print_r($role);
										foreach($nhomtaikhoan as $key1=> $val1)
										{
											
											echo"<div class='listgroup'>";
										    echo "<p class=''><b>".$val1['nhomtaikhoan_ten']."</b></p>";
											foreach($role as $key=> $val)
											{
											  ?>	
                                        	<label class="checkbox-inline" style="margin:10px">
                                          	  	<input
                                                	<?php
													$a=$val['role_id'];
													$b=$val1['taikhoan_type'];
													
													//echo $check;
													if($this->thuvien->setcheck($a,$b)) echo "checked"; else echo "";
													?>
                                                
                                                  type="checkbox"><?php echo $val['role_tieude']; ?>
                                            </label>
                                            
										<?php	
											
											}
											echo" </div>";
										}
										?>   
                                    </div> 
                                    <div class="form-group">
                                      <div class=" col-sm-1">
                                        <button type="submit" name="btnadd"  class="btn btn-success">Cập nhật</button>
                                      </div>
                                    </div>
                                    </fieldset>
                               </form> 
                                
                            </div>
                            <!-- /.table-responsive --> 
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
